package com.qf.service.impl;

import com.qf.entity.WmsCkManagement;
import com.qf.mapper.WmsCkManagementMapper;
import com.qf.service.WmsCkManagementService;
import com.qf.until.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;

@Service
public class WmsCkManagementServiceImpl implements WmsCkManagementService {

    /**
     * 查询
     */
    @Autowired
    private WmsCkManagementMapper mapper;
    @Override
    public List<WmsCkManagement> findAll(HashMap<String, String> map) {
        return mapper.findAll(map);
    }

    /**
     * 删除
     * @param requestNum
     * @return
     */
    @Override
    public boolean del(Long requestNum) {
        return mapper.del(requestNum);
    }

    /**
     *  添加 ，还没有实现
     * @param wmsCkManagement
     * @return
     */
    @Override
    public boolean add(WmsCkManagement wmsCkManagement) {
        return mapper.add(wmsCkManagement);
    }

    /**
     * 申请项目
     * @return
     */
    @Override
    public List<WmsCkManagement> selectByProject() {
        return mapper.selectByProject();
    }

    /**
     * 申请人
     * @return
     */
    @Override
    public List<WmsCkManagement> selectByName() {
        return mapper.selectByName();
    }

    @Override
    public List<WmsCkManagement> selectByStatus() {
        return mapper.selectByStatus();
    }


}
